package com.itheima.threadatom.threadatom1;

public class MyAtomThread implements Runnable{
    private volatile int count = 0;

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            count++;
            System.out.println("送了"+count+"个冰淇淋");
        }
    }
}
